package com.lj.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author luojing
 * @version 1.0
 * @date 2021/6/7 15:30
 */
@Component
@FeignClient("service-oss")
public interface OssClient {

//    @GetMapping("/oss/delete/{yyyy}/{MM}/{dd}/{fileName}")
//    void delete(@PathVariable("yyyy") String yyyy, @PathVariable("MM") String MM,
//                       @PathVariable("dd") String dd, @PathVariable("fileName") String fileName);
    @GetMapping("/oss/delete/{fileName}")
    void delete(@PathVariable("fileName") String fileName);
}
